ProfilePress\Core\Membership\Models\Subscription\SubscriptionEntity C

Total Complexity 101
Dependencies 14
Dependents 6
Total lines 654
Lines of code 307
Logical lines of code 173
Comment lines 139
Methods 47
Properties 18

Methods 47

Method Rating Maintainability Complexity Lines of code
renew()
A
45 10 42
is_expired()
S
55 7 17
__construct()
S
60 7 12
expire()
S
63 5 10
cancel()
S
61 4 11
maybe_complete_subscription()
S
68 4 7
is_active()
S
60 3 13
enable_subscription_trial()
S
62 3 11
activate_subscription()
S
62 3 11
complete()
S
70 3 6
has_cancellation_requested()
S
73 3 4
get_subscription_terms()
S
61 2 13
update_status()
S
62 2 11
get_recurring_tax_rate()
S
79 2 3
can_cancel()
S
75 2 4
get_formatted_expiration_date()
S
68 2 7
set_trial_period()
S
70 2 6
set_status()
S
70 2 6
get_recurring_tax()
S
79 2 3
get_initial_tax()
S
79 2 3
is_lifetime()
S
78 2 3
has_trial()
S
79 2 3
save()
S
64 2 10
get_initial_tax_rate()
S
79 2 3
exists()
S
80 1 3
get_parent_order_id()
S
80 1 3
add_renewal_order()
S
68 1 8
get_id()
S
80 1 3
is_cancelled()
S
80 1 3
is_completed()
S
80 1 3
is_recurring()
S
80 1 3
get_completed_order_count()
S
71 1 6
delete_cancellation_requested()
S
80 1 3
add_cancellation_requested()
S
75 1 4
get_times_billed()
S
67 1 8
get_status()
S
78 1 3
get_plan_id()
S
80 1 3
update_profile_id()
S
79 1 3
get_total_payments()
S
80 1 3
get_initial_amount()
S
81 1 3
get_all_orders()
S
71 1 6
get_recurring_amount()
S
81 1 3
add_note()
S
71 1 5
get_notes()
S
78 1 3
get_profile_id()
S
78 1 3
get_payment_method()
S
80 1 3
get_customer_id()
S
80 1 3